clear; close('all'); clc;
addpath '..\common';

%iqpath = '.\obs423IQ_0925\11ag_6415_evm-47\DUT1_IQDataCentral.Int16';
%fs = 39.0625e6; 
%iq_data = rm.rfutils.load_iq(iqpath, 'int16');

%iqpath = '.\BW200M.rm';
%fs = 600e6;
%[iq_data, iq_info] = rm.rfutils.load_rmarb(iqpath);

%波形信息: FS = 390.625M ,startIdx 803363, stopIdx 2578995
%fs = 390.625e6;
%startIdx = 803363;
%stopIdx = 2578995;
%iqpath = '.\data\Case24_MU_BW160_MCS13_longburst.float';
%[iq_data, iq_info] = rm.rfutils.load_iq(iqpath, 'float32', startIdx*8, stopIdx-startIdx);
%disp(iq_info);
%%rm.rfsa.waveform(iq_data, fs);
%rm.rfsa.spectrum(iq_data, fs, true);

iqpath = '.\data\BW200M.wv';
fs = 600e6;
[iq_data, iq_info] = rm.rfutils.load_rswv(iqpath);
disp(iq_info);
%rm.rfsa.waveform(iq_data, fs);
rm.rfsa.spectrum(iq_data, fs, true);

iqpath = '.\data\RF_Board_2400.iq\File_2025-10-23173051.complex.1ch.float32';
fs = 640e6;
[iq_data, iq_info] = rm.rfutils.load_iq(iqpath, 'float32', 0, 6000000);
disp(iq_info);
%rm.rfsa.waveform(iq_data, fs);
rm.rfsa.spectrum(iq_data, fs, true);
